package com.yanqu.road.entity.log;

import com.yanqu.road.entity.FieldTypeAnnotation;

@FieldTypeAnnotation(tableName = "t_l_ck_buy", desc = "商店购买", autoSave = true, uploadCk = true)
public class LogBuy extends ServerBaseLog {

	@FieldTypeAnnotation(desc = "用户id", isIndex = true)
	private long userId;
	@FieldTypeAnnotation(desc = "商品id", isIndex = true)
	private int mallId;
	@FieldTypeAnnotation(desc = "道具")
	private String goods;
	@FieldTypeAnnotation(desc = "数量")
	private int count;
	@FieldTypeAnnotation(desc = "价格")
	private String price;
	@FieldTypeAnnotation(desc = "商店类型")
	private int shopType;
	@FieldTypeAnnotation(desc = "活动类型")
	private String activityType;
	@FieldTypeAnnotation(desc = "vip经验")
	private long vipExp;
	@FieldTypeAnnotation(desc = "mallMarkId")
	private int mallMarkId;

	public LogBuy(long userId, int mallId, String goods, int count, String price, int shopType,
				  String activityType, long vipExp, int mallMarkId) {
		this.userId = userId;
		this.mallId = mallId;
		this.goods = goods;
		this.count = count;
		this.price = price;
		this.shopType = shopType;
		this.activityType = activityType;
		this.vipExp = vipExp;
		this.mallMarkId = mallMarkId;
	}

	public long getUserId() {
		return userId;
	}

}
